<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>vue-demo</title>
    <link rel="shortcut icon" type="image/x-icon" href="/static/favicon.png">
    <link rel="stylesheet" href="/static/css/common.css">
  </head>
  <body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>
<!-- script下面key值可以更换为高德开发者平台自己申请的key,也可以用我的 -->
<script src="http://webapi.amap.com/maps?v=1.4.6&key=9f63e48dcb3ccddc5cf6601788186f13&plugin=AMap.MouseTool"></script>
<script>
window.onmessage = function (e) {
    var student = e.data;
    if (student  != undefined && student  != null) {
        if(student.id != undefined && student.id != null) {
            var id = student.id;
            var name = student.name;
            console.log(id);
            console.log(name);
        }
    }

};
</script>